import request from "@/utils/request";
// 限时特卖

export function get_panic_index(params) {
  return request({
    url: "/panic/index",
    method: "get",
    params
  });
}

// 新增活动
export function get_panic_add(data) {
  return request({
    url: "/panic/add",
    method: "post",
    data: data
  });
}

// 编辑活动
export function get_panic_edit(data) {
  return request({
    url: "/panic/edit",
    method: "post",
    data: data
  });
}

// 编辑活动删除商品
export function get_deleteList(data) {
  return request({
    url: "/panic/deleteList",
    method: "post",
    data: data
  });
}
// 查看
export function get_panic_info(params) {
  return request({
    url: "/panic/info",
    method: "get",
    params
  });
}

// 关闭活动
export function get_panic_closeActivity(data) {
  return request({
    url: "/panic/closeActivity",
    method: "post",
    data: data
  });
}

export function get_panic_unique(params) {
  return request({
    url: "/panic/unique",
    method: "get",
    params
  });
}

// 获取分组

export function get_panic_base(params) {
  return request({
    url: "/panic/base",
    method: "get",
    params
  });
}
